public class Simulator {
    public void playSound(Animal animal){
        System.out.println("播放"+animal.getAnimalName()+"的声音：");
        animal.cry();
    }
}
